import {
  GET_customMenus,
  GET_indexMenu,
  SET_menuCodeMenuLeafs
} from './type';

export default {
  [GET_customMenus](state,data){
    state.customMenus = data;
  },
  [GET_indexMenu](state,data){
    state.indexMenu = data;
    state.allMenus = data;
  },
  [SET_menuCodeMenuLeafs](state,k,v){
    state.menuCodeMenuLeafs[k].push(v);
  }
}
